package com.starlink.model.dtomapper;

import com.starlink.model.domain.PointsUseBillDO;
import com.starlink.model.request.PointsUseBillRequest;
import com.starlink.model.vo.PointsUseBillVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface PointsUseBillDtoMapper {

    PointsUseBillDtoMapper INSTANCE = Mappers.getMapper(PointsUseBillDtoMapper.class);

    /**
    * DO to VO
    * @param pointsUseBillDO
    * @return
    */
    PointsUseBillVO do2VO(PointsUseBillDO pointsUseBillDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    PointsUseBillDO request2DO(PointsUseBillRequest request);
}
